<!--
    试算页面 公共插件

    参数：
    planId         方案ID
    op             'add'=新增;'view'=查看;'edit'=修改
 -->
<template>
    <div>
        <fileOperation :isInt="isInt" :uploadParam="uploadParam" :path="path" :readOnly="readOnly"/>
    </div>
</template>
<script>

    import fileOperation from "@/projects/basic/pages/image/upload-file/fileOperation.vue";

    export default {
        components: {
            fileOperation,
        },
        name: "productLaunchTabTwo",
        props: {
            //方案ID
            planId:{
                type:String,
            },
            //状态
            op:{
                type:String,
                required: false,
                default: 'view'
            },
        },
        data() {
            return {
                isInt:true,
                uploadParam: {
                    busiNo: "",//附件编号
                    belongNo: "",//
                    busiType: "product",//
                    busiData: {},//
                },
                path:'product',
                readOnly:true,
            }
        },
        mounted() {
            this.uploadParam.busiNo = this.planId;
            this.uploadParam.belongNo = this.planId;
            if(this.op!='view'){
                this.readOnly = false;
            }
        },
        methods: {
        },
        computed: {
        },
    };
</script>
